CC=gcc
LIBS=libnl-genl-3.0 libnl-3.0

obj-m := libnl_module.o
KERNEL_BUILD :=/lib/modules/$(shell uname -r)/build

all::
	make -C $(KERNEL_BUILD) M=$(shell pwd) modules
	$(CC) libnl.c  -o libnl $(shell pkg-config --cflags --libs $(LIBS))

clean:
	-@rm *.ko *.o *.mod.c *.order *.symvers .*.cmd &>/dev/null
	-@rm -rf .tmp_versions/


